package main;

/**
 * Creates a Node for a Line Linked List
 * @author Justin
 *
 */
public class Line {
	private Line nextWord;
	private String word;
	/**
	 * A linked list for Lines in a file
	 * @param theWord
	 */
	public Line(String theWord){
		word = theWord;
		nextWord = null;
	}
	/**
	 * A linked list for Lines in a file
	 */
	public Line(){
		nextWord = null;
		
	}
	/**
	 * 
	 * @return string
	 */
	public String getLine(){
		return word;
	}
	/**
	 * 
	 * @return Line
	 */
	public Line getNext(){
		return nextWord;
	}
	/**
	 * Sets the next node in the list
	 * @param nextLine
	 */
	public void setNext(Line nextLine){
		this.nextWord = nextLine;
	}
	/**
	 * sets the string contained
	 * @param theWord
	 */
	public void setLine(String theWord){
		word = theWord;
	}
}
